#include("/WEB-INF/pages/instructor/layout.html")
#@layout()
#define content()
<form action="/instructor/oneClazz" method="post" class="layui-form">
    <input type="hidden" name="clazz_id" value="#(clazz_id)" class="layui-input">
    <div class="layui-form-item">
        <label class="layui-form-label">学生姓名：</label>
        <div class="layui-input-inline">
            <input type="text" name="student_name"
                   autocomplete="off" class="layui-input">
        </div>
        <input type="submit" value="查找" class="layui-btn">
    </div>
</form>
<table class="layui-table">
    <thead>
    <th>学生学号</th>
    <th>学生姓名</th>
    <th>学生班级</th>
    <th>学生电话</th>
    <th></th>
    </thead>
    <tbody>
    #for(stu : students.getList())
    <tr>
        <td>#(stu.studentId)</td>
        <td>#(stu.studentName)</td>
        <td>#(stu.clazzId)</td>
        <td>#(stu.studentPhone)</td>
        <td><a href="/instructor/student?student_id=#(stu.studentId)">详细信息</a></td>
    </tr>
    #end
    </tbody>
</table>
#set(pageNo = students.getPageNumber()??)
<span>
                <a href="/instructor/oneClazz?pageNo = 1 &clazz_id=#(clazz_id)" class="layui-btn">首页</a>&emsp;
            <a href="/instructor/oneClazz?pageNo = #(pageNo <= 1? 1:(pageNo - 1) )&clazz_id=#(clazz_id)" class="layui-btn">上一页</a>
            &emsp;<a href="/instructor/oneClazz?pageNo = #(pageNo + 1)&clazz_id=#(clazz_id)" class="layui-btn">下一页</a>
               &emsp; <a href="/instructor/oneClazz?pageNo = #(students.getTotalPage()) &clazz_id=#(clazz_id)" class="layui-btn">尾页</a>
                </span>
#end